package com.ssm.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ssm.util.FD;

import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

@Entity
@Table(name = "t_item_check")
@NameStyle(Style.normal)
public class ItemCheck {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	private Integer	id;
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "teacherId", updatable = false, insertable = false)
	@FD("被评教师")
	private Teacher	teacher;
	private Integer	teacherId;
	//教师账号
	private String	teachername;
	@FD("类别") //学生评教 
	private String	typesel;
	//@FD("评分人编号")
	private Integer	userId;
	@FD("评分人")
	private String	fuser;
	@FD("评分")
	private Integer	score;
	//@FD("明细")
	@Column(length = 5000)
	private String	cresult;

	public String getTeachername() {
		return teachername;
	}

	public void setTeachername(String teachername) {
		this.teachername = teachername;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public Integer getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(Integer teacherId) {
		this.teacherId = teacherId;
	}

	public String getTypesel() {
		return typesel;
	}

	public void setTypesel(String typesel) {
		this.typesel = typesel;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getFuser() {
		return fuser;
	}

	public void setFuser(String fuser) {
		this.fuser = fuser;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getCresult() {
		return cresult;
	}

	public void setCresult(String cresult) {
		this.cresult = cresult;
	}

}
